package com.union.utils;//package com.union.sharemine.utils;
//
//
//import com.union.community.model.api.IHttpService;
//import com.union.community.model.nohttp.HttpProxyInvocation;
//import com.union.community.model.nohttp.HttpProxyNoDialogInvocation;
//import com.union.community.model.nohttp.HttpProxyUpLoadFileInvocation;
//
//import java.lang.reflect.Proxy;
//
//
//public class ProxyUtils {
//    private static HttpProxyInvocation proxyHandler = new HttpProxyInvocation();
//    private static HttpProxyNoDialogInvocation proxyHandlerNoDialog = new HttpProxyNoDialogInvocation();
//    private static HttpProxyUpLoadFileInvocation proxyHandlerUploadFile = new HttpProxyUpLoadFileInvocation();
//
//    public static IHttpService getHttpProxy() {
//        return (IHttpService) Proxy.newProxyInstance(proxyHandler.getClass().getClassLoader(), new Class[]{IHttpService.class}, proxyHandler);
//    }
//
//    public static IHttpService getHttpProxyNoDialog() {
//        return (IHttpService) Proxy.newProxyInstance(proxyHandlerNoDialog.getClass().getClassLoader(), new Class[]{IHttpService.class}, proxyHandlerNoDialog);
//    }
//    public static IHttpService getHttpProxyUpLoadFile() {
//        return (IHttpService) Proxy.newProxyInstance(proxyHandlerUploadFile.getClass().getClassLoader(), new Class[]{IHttpService.class}, proxyHandlerUploadFile);
//    }
//}
